/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package model;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
import javax.persistence.*;
/**
 *
 * @author Ekaterina
 */
@Entity
@Table (name = "worker", catalog = "otdelkadrov", schema = "")
public class Worker implements Serializable {
    
@Column(name = "surname")
private String surname;

@Column(name = "name")
private String name;

@Column(name = "middle")
private String middle;

@Column(name = "birthday")
@Temporal(javax.persistence.TemporalType.TIMESTAMP)
private Date birthday;

@Column(name = "citizenship")
private String citizenship;

@Column(name = "education")
private String education;

@Column(name = "family_status")
private String family_status;

@Column(name = "sex")
private String sex;

@Column(name = "kod")
private String kod;

@Column(name = "pensia")
private String pensia;

@Id
@GeneratedValue
@Column (name="id")
private Integer id = null;

@OneToMany 
private List<Vacation> vacationList;

@OneToMany 
private List<Education> educationList;

@OneToMany 
private List<Educationv> educationvList;

@OneToMany 
private List<Perevody> perevodyList;

@OneToMany 
private List<Family> familyList;

@OneToMany 
private List<Experience> stazhList;

@OneToMany 
private List<Address> addressList;

    public String getSurname() {
        return surname;
    }

    public String getName() {
        return name;
    }

    public String getMiddle() {
        return middle;
    }

    public Date getBirthday() {
        return birthday;
    }

    public String getCitizenship() {
        return citizenship;
    }

    public String getEducation() {
        return education;
    }

    public String getFamily_status() {
        return family_status;
    }

    public String getSex() {
        return sex;
    }

    public String getKod() {
        return kod;
    }

    public Integer getId() {
        return id;
    }
    
       public String getPensia() {
        return pensia;
    }

    public void setSurname(String surname) {
        this.surname = surname;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setMiddle(String middle) {
        this.middle = middle;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public void setCitizenship(String citizenship) {
        this.citizenship = citizenship;
    }

    public void setEducation(String education) {
        this.education = education;
    }

    public void setFamily_status(String family_status) {
        this.family_status = family_status;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public void setKod(String kod) {
        this.kod = kod;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    
     public void setPensia(String pensia) {
        this.pensia = pensia;
    }
    
}
